\hypertarget{class_mathematica_translator_1_1_m_t_expression}{
\section{\-Mathematica\-Translator\-:\-:\-M\-T\-Expression \-Class \-Reference}
\label{class_mathematica_translator_1_1_m_t_expression}\index{\-Mathematica\-Translator\-::\-M\-T\-Expression@{\-Mathematica\-Translator\-::\-M\-T\-Expression}}
}


{\ttfamily \#include $<$\-M\-T\-Expression.\-hpp$>$}

\-Inheritance diagram for \-Mathematica\-Translator\-:\-:\-M\-T\-Expression\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=12.000000cm]{class_mathematica_translator_1_1_m_t_expression}
\end{center}
\end{figure}
\subsection*{\-Public \-Member \-Functions}
\begin{DoxyCompactItemize}
\item 
virtual std\-::string $\ast$ \hyperlink{class_mathematica_translator_1_1_m_t_expression_ae60846398fde87b09c242b5ea263586e}{generate\-Code} (\hyperlink{class_mathematica_translator_1_1_code_gen_context}{\-Code\-Gen\-Context} \&context)
\item 
\hypertarget{class_mathematica_translator_1_1_m_t_expression_a23e0636b6470c617d7cf08b0cb889247}{
virtual std\-::string $\ast$ \hyperlink{class_mathematica_translator_1_1_m_t_expression_a23e0636b6470c617d7cf08b0cb889247}{get\-Type} ()}
\label{class_mathematica_translator_1_1_m_t_expression_a23e0636b6470c617d7cf08b0cb889247}

\begin{DoxyCompactList}\small\item\em \-Get the best type that fits the underlying expression. \end{DoxyCompactList}\item 
virtual std\-::string $\ast$ \hyperlink{class_mathematica_translator_1_1_m_t_expression_a47c66480bdb9dca746c79b3d098fb24e}{get\-Number\-Of\-Elements} ()
\item 
\hypertarget{class_mathematica_translator_1_1_m_t_expression_a1111e47abf9e0222d3aceca4fa725dfd}{
virtual int {\bfseries get\-Class\-Type} ()}
\label{class_mathematica_translator_1_1_m_t_expression_a1111e47abf9e0222d3aceca4fa725dfd}

\end{DoxyCompactItemize}


\subsection{\-Detailed \-Description}
\-Main holder for each expression that could be evaluated. 

\subsection{\-Member \-Function \-Documentation}
\hypertarget{class_mathematica_translator_1_1_m_t_expression_ae60846398fde87b09c242b5ea263586e}{
\index{\-Mathematica\-Translator\-::\-M\-T\-Expression@{\-Mathematica\-Translator\-::\-M\-T\-Expression}!generate\-Code@{generate\-Code}}
\index{generate\-Code@{generate\-Code}!MathematicaTranslator::MTExpression@{\-Mathematica\-Translator\-::\-M\-T\-Expression}}
\subsubsection[{generate\-Code}]{\setlength{\rightskip}{0pt plus 5cm}std\-::string $\ast$ \-Mathematica\-Translator\-::\-M\-T\-Expression\-::generate\-Code (
\begin{DoxyParamCaption}
\item[{{\bf \-Code\-Gen\-Context} \&}]{context}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{class_mathematica_translator_1_1_m_t_expression_ae60846398fde87b09c242b5ea263586e}
\-Main method to print the result of translating into \-C++ from \-Mathematica 
\begin{DoxyParams}{\-Parameters}
{\em context} & current variable context \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{\-Returns}
allocated string with translation 
\end{DoxyReturn}


\-Reimplemented from \hyperlink{class_mathematica_translator_1_1_m_t_node_a9f0dd733cc13b360641b310e8b8be9a9}{\-Mathematica\-Translator\-::\-M\-T\-Node}.



\-Reimplemented in \hyperlink{class_mathematica_translator_1_1_m_t_list_ac722fb2a5883294dbddb9447f2998b4f}{\-Mathematica\-Translator\-::\-M\-T\-List}, \hyperlink{class_mathematica_translator_1_1_m_t_binary_operator_a80adb8d79c79bb60b3fddb874d2bdf47}{\-Mathematica\-Translator\-::\-M\-T\-Binary\-Operator}, \hyperlink{class_mathematica_translator_1_1_m_t_method_call_aa7effc736704fe153d03ef11f5d12654}{\-Mathematica\-Translator\-::\-M\-T\-Method\-Call}, \hyperlink{class_mathematica_translator_1_1_m_t_matrix_binary_operator_a6a68a6079b495591dcfe6ee488d8022d}{\-Mathematica\-Translator\-::\-M\-T\-Matrix\-Binary\-Operator}, \hyperlink{class_mathematica_translator_1_1_m_t_list_binary_operator_ab47fb0770bf4d9cabf3542684cca7cc9}{\-Mathematica\-Translator\-::\-M\-T\-List\-Binary\-Operator}, \hyperlink{class_mathematica_translator_1_1_m_t_matrix_ac2c7a9633d11ca5da6661d19220729fa}{\-Mathematica\-Translator\-::\-M\-T\-Matrix}, \hyperlink{class_mathematica_translator_1_1_m_t_paren_expression_a3020cf88de8946b9be9240b62d85a208}{\-Mathematica\-Translator\-::\-M\-T\-Paren\-Expression}, \hyperlink{class_mathematica_translator_1_1_m_t_unary_operator_a7591288fe3da74b9df41e313dc4a5a22}{\-Mathematica\-Translator\-::\-M\-T\-Unary\-Operator}, \hyperlink{class_mathematica_translator_1_1_m_t_double_ad0284e7eec9304b4173d269ae870e916}{\-Mathematica\-Translator\-::\-M\-T\-Double}, \hyperlink{class_mathematica_translator_1_1_m_t_float_a5b081ca3301f8feaaaa7b6a2cfa11335}{\-Mathematica\-Translator\-::\-M\-T\-Float}, \hyperlink{class_mathematica_translator_1_1_m_t_integer_af0e890abf44ad8e1fd07fca35b093dd3}{\-Mathematica\-Translator\-::\-M\-T\-Integer}, and \hyperlink{class_mathematica_translator_1_1_m_t_identifier_aaf0e42cfd5fa76f897ca3c753b755f98}{\-Mathematica\-Translator\-::\-M\-T\-Identifier}.

\hypertarget{class_mathematica_translator_1_1_m_t_expression_a47c66480bdb9dca746c79b3d098fb24e}{
\index{\-Mathematica\-Translator\-::\-M\-T\-Expression@{\-Mathematica\-Translator\-::\-M\-T\-Expression}!get\-Number\-Of\-Elements@{get\-Number\-Of\-Elements}}
\index{get\-Number\-Of\-Elements@{get\-Number\-Of\-Elements}!MathematicaTranslator::MTExpression@{\-Mathematica\-Translator\-::\-M\-T\-Expression}}
\subsubsection[{get\-Number\-Of\-Elements}]{\setlength{\rightskip}{0pt plus 5cm}std\-::string $\ast$ \-Mathematica\-Translator\-::\-M\-T\-Expression\-::get\-Number\-Of\-Elements (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{class_mathematica_translator_1_1_m_t_expression_a47c66480bdb9dca746c79b3d098fb24e}
\-Get the number of elements in underlying expression \begin{DoxyNote}{\-Note}
for primitves returns 1, for vector/matrix returns number of elements 
\end{DoxyNote}
\begin{DoxyReturn}{\-Returns}
number of elements as string 
\end{DoxyReturn}


\-Reimplemented in \hyperlink{class_mathematica_translator_1_1_m_t_list_a89fa02f97ddbdc9c8d053a5d35039edd}{\-Mathematica\-Translator\-::\-M\-T\-List}, \hyperlink{class_mathematica_translator_1_1_m_t_matrix_binary_operator_a7f443fb9c0f9eee0075d626be40066f0}{\-Mathematica\-Translator\-::\-M\-T\-Matrix\-Binary\-Operator}, \hyperlink{class_mathematica_translator_1_1_m_t_list_binary_operator_a08d276c96979feee6b643b97c2167844}{\-Mathematica\-Translator\-::\-M\-T\-List\-Binary\-Operator}, and \hyperlink{class_mathematica_translator_1_1_m_t_matrix_a7c332ec5eb1a5ee5873bf007f048b454}{\-Mathematica\-Translator\-::\-M\-T\-Matrix}.



\-The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
\-M\-T\-Expression.\-hpp\item 
\-M\-T\-Expression.\-cpp\end{DoxyCompactItemize}
